package client.game.world.map;

import java.util.LinkedList;

public class Path {

	private LinkedList<Tile> steps = new LinkedList<Tile>();

	public int getLength() {
		return steps.size();
	}

	public Tile poll() {
		return steps.poll();
	}
	
	public Tile getStep(int index) {
		return steps.get(index);
	}

	public void appendStep(Tile tile) {
		steps.add(tile);
	}

	public void prependStep(Tile tile) {
		steps.addFirst(tile);
	}

	public boolean contains(Tile tile) {
		return steps.contains(tile);
	}

}